package com.android.sunflower.logic.room.daos

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.android.sunflower.logic.room.entities.Flower

@Dao
interface FlowerDao {
    @Insert()
    fun insertFlowers(vararg f:Flower)

    @Query("select * from flower")
    fun selectAll():List<Flower>

    @Query("select * from flower where name like :name")
    fun selectByName(name:String):List<Flower>
}